﻿
using SqlSugar;


namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 报警字典
    /// </summary>
    [SugarTable("cks_alarm_dict")]
    [Table(Name = "cks_alarm_dict")]
    public class CksAlarmDict : BaseEntity
    {
        /// <summary>
        /// Id 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary =true,IsIdentity =true)]
        public long Id {  get; set; }
        /// <summary>
        /// 导入文件的Id编号
        /// </summary>
        public long AlarmId { get; set; }


        public int PlcId { get; set; }

        public int BlockDb { get; set; }



        /// <summary>
        /// 报警位编号 
        /// </summary>
        public int BitId {  get; set; }

        /// <summary>
        /// 设备名称 
        /// </summary>
        public string DeviceName { get; set; } = string.Empty;

        /// <summary>
        /// 报警地址 
        /// </summary>
        public string SignalAddress { get; set; } = string.Empty;

        /// <summary>
        /// 报警代码 
        /// </summary>
        public string AlarmCode { get; set; } = string.Empty;

        /// <summary>
        /// 故障原因 
        /// </summary>
        public string FaultCase { get; set; } = string.Empty;

        /// <summary>
        /// 解决方法 
        /// </summary>
        public string Solution { get; set; } = string.Empty;

        /// <summary>
        /// 禁用状态 
        /// </summary>
        public bool Nullity { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime CreatedTime { get; set; } = DateTime.Now;

        

    }
}